
{if $smarty.get.stateid}
  <select name="suburbid" id="suburbid" class="select" onchange="showpostalcode(this.value);">
      <option value="">--Select Suburb--</option>
      {section name=i loop=$suburbArray}
      <option value="{$suburbArray[i].id}" {if $suburbArray[i].id eq $smarty.post.suburbid} selected="selected" {/if}>{$suburbArray[i].suburb}</option>
      {/section}
  </select>
{/if}

{if $smarty.get.suburbid}
<input type="text" class="input" name="postalcode" id="postalcode" value="{$getpostalcodedetail.postcode}" readonly="readonly" />
{/if}